import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { LayoutRourteStatus } from 'src/app/model/status';
import { MessageService } from 'src/app/core/service';
import { MemberService } from '../../member.server';

@Component({
  selector: 'app-transfer-dtl',
  templateUrl: './transfer-dtl.html',
  styleUrls: ['./transfer-dtl.scss']
})
export class TransferDtlComponent implements OnInit {


  private _layoutRourteStatus: LayoutRourteStatus = {
    url: 'center/getCash/del',
    isHiddeBreadcrumb: true,
    breadcrumbs: [
      { tragetTitle: '提现记录', breadcrumbUrl: 'center/getCash' },
      { tragetTitle: '提现详情' }
    ]
  };
  private _data = {};


  ngOnInit() {
    this.msg.sendLayoutRourteStatus(this._layoutRourteStatus);
    this.loadList('商户提现详情页');
  }

  async loadList(url) {
    // const data = await this.memberServer.getAJX(url, this._aroute.snapshot.queryParams);
    // this.memberServer.getApiSuccess(data, false) ? this.successListOk(data.data, url) : '';
  }

  public successListOk(data, url): void{
    switch (url) {
      case '商户提现详情页':
        this._data = data;
        break;
    }
  }

  constructor(
    private memberServer: MemberService,
    private _aroute: ActivatedRoute,
    private msg: MessageService,
  ) { }
}
